/**
 * 
 */
package mdb.com.vn.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

/**
 * @author tu.dod
 *
 */
	@Entity
	@Table(name="IFTB_CARD_SMS")
	@NamedQueries({
		@NamedQuery(name="CardSms.findByStatus", query="SELECT i FROM CardSms i WHERE i.status = :status"),
		@NamedQuery(name="CardSms.findByStatusDate", query="SELECT i FROM CardSms i WHERE i.status = :status AND i.processDate = :processDate"),
		@NamedQuery(name="CardSms.findByStatusDateGcif", query="SELECT i FROM CardSms i WHERE i.customerId = :customerId and i.status = :status AND i.processDate = :processDate")
	})
	
	public class CardSms implements Serializable {
		private static final long serialVersionUID = 1L;

		@Column(name="CREATED_BY")
		private String createdBy;

		@Column(name="CUSTOMER_ID")
		private String customerId;

		@Column(name="FIN_CYCLE")
		private String finCycle;

		@Id
		private long id;
		
		@Column(name="PHONE")
		private String phoneNum;

		@Column(name="LKD_NUM")
		private int lkdNum;

		@Column(name="PERIOD_CODE")
		private int periodCode;

		@Temporal(TemporalType.DATE)
		@Column(name="PROCESS_DATE")
		private Date processDate;
		
		@Column(name="STATUS")
		private String status;
		
		@Column(name="TOTAL_AMT_TXN")
		private BigDecimal totalAmtTxn;
		
		@Column(name="TOTAL_COUNTER_TXN")
		private int totalCounterTxn;
		
		@Column(name="UPDATED_BY")
		private String updatedBy;

		@Temporal(TemporalType.DATE)
		@Column(name="UPDATED_DATE")
		private Date updatedDate;
		
		@Column(name="BRANCH_CODE")
		private String branchCode;

		/**
		 * @return the updatedBy
		 */
		public String getUpdatedBy() {
			return updatedBy;
		}

		/**
		 * @param updatedBy the updatedBy to set
		 */
		public void setUpdatedBy(String updatedBy) {
			this.updatedBy = updatedBy;
		}

		/**
		 * @return the updatedDate
		 */
		public Date getUpdatedDate() {
			return updatedDate;
		}

		/**
		 * @param updatedDate the updatedDate to set
		 */
		public void setUpdatedDate(Date updatedDate) {
			this.updatedDate = updatedDate;
		}

		/**
		 * @return the branchCode
		 */
		public String getBranchCode() {
			return branchCode;
		}

		/**
		 * @param branchCode the branchCode to set
		 */
		public void setBranchCode(String branchCode) {
			this.branchCode = branchCode;
		}

		/**
		 * @return the createdBy
		 */
		public String getCreatedBy() {
			return createdBy;
		}

		/**
		 * @param createdBy the createdBy to set
		 */
		public void setCreatedBy(String createdBy) {
			this.createdBy = createdBy;
		}

		/**
		 * @return the customerId
		 */
		public String getCustomerId() {
			return customerId;
		}

		/**
		 * @param customerId the customerId to set
		 */
		public void setCustomerId(String customerId) {
			this.customerId = customerId;
		}

		/**
		 * @return the finCycle
		 */
		public String getFinCycle() {
			return finCycle;
		}

		/**
		 * @param finCycle the finCycle to set
		 */
		public void setFinCycle(String finCycle) {
			this.finCycle = finCycle;
		}

		/**
		 * @return the id
		 */
		public long getId() {
			return id;
		}

		/**
		 * @param id the id to set
		 */
		public void setId(long id) {
			this.id = id;
		}

		/**
		 * @return the lkdNum
		 */
		public int getLkdNum() {
			return lkdNum;
		}

		/**
		 * @param lkdNum the lkdNum to set
		 */
		public void setLkdNum(int lkdNum) {
			this.lkdNum = lkdNum;
		}

		/**
		 * @return the periodCode
		 */
		public int getPeriodCode() {
			return periodCode;
		}

		/**
		 * @param periodCode the periodCode to set
		 */
		public void setPeriodCode(int periodCode) {
			this.periodCode = periodCode;
		}

		/**
		 * @return the processDate
		 */
		public Date getProcessDate() {
			return processDate;
		}

		/**
		 * @param processDate the processDate to set
		 */
		public void setProcessDate(Date processDate) {
			this.processDate = processDate;
		}

		/**
		 * @return the status
		 */
		public String getStatus() {
			return status;
		}

		/**
		 * @param status the status to set
		 */
		public void setStatus(String status) {
			this.status = status;
		}

		/**
		 * @return the totalAmtTxn
		 */
		public BigDecimal getTotalAmtTxn() {
			return totalAmtTxn;
		}

		/**
		 * @param totalAmtTxn the totalAmtTxn to set
		 */
		public void setTotalAmtTxn(BigDecimal totalAmtTxn) {
			this.totalAmtTxn = totalAmtTxn;
		}

		/**
		 * @return the totalCounterTxn
		 */
		public int getTotalCounterTxn() {
			return totalCounterTxn;
		}

		/**
		 * @param totalCounterTxn the totalCounterTxn to set
		 */
		public void setTotalCounterTxn(int totalCounterTxn) {
			this.totalCounterTxn = totalCounterTxn;
		}

		/**
		 * @return the phoneNum
		 */
		public String getPhoneNum() {
			return phoneNum;
		}

		/**
		 * @param phoneNum the phoneNum to set
		 */
		public void setPhoneNum(String phoneNum) {
			this.phoneNum = phoneNum;
		}
		
		
		
}
